package org.myOrg.spetrum.util;

public class MessageImplement implements Message {
	private Object source;
	private Object info;
	private int type;

	public MessageImplement(Object source , int type , Object info) {
		this.source = source;
		this.type = type;
		this.info = info;
	}
	public MessageImplement(){
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.myOrg.spetrum.util.Message#getSource()
	 */
	@Override
	public Object getSource() {
		return source;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.myOrg.spetrum.util.Message#getInfo()
	 */
	@Override
	public int getType() {
		return type;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.myOrg.spetrum.util.Message#setInfo(int)
	 */
	@Override
	public void setType(int type) {
		this.type = type;
	}

	@Override
	public void setSource(Object object) {
		// TODO Auto-generated method stub
		this.source =object;
	}
	@Override
	public void setInfo(Object object) {
		// TODO Auto-generated method stub
		this.info = object;
		
	}
	@Override
	public Object getInfo() {
		// TODO Auto-generated method stub
		return info;
	}
}
